package com.adingxiong.quickstart.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author xiongc
 * @since 2020-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Discuss对象", description="评论表")
public class Discuss implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评论人")
    private String username;

    @ApiModelProperty(value = "归属地")
    private String address;

    @ApiModelProperty(value = "ip 地址")
    private String ip;

    @ApiModelProperty(value = "评论时间")
    private Date createTime;

    @ApiModelProperty(value = "浏览器属性")
    private String surefireType;

    @ApiModelProperty(value = "留言内容")
    private String content;

    private Integer publishId;

    //忽略查询映射
    @TableField(exist = false)
    private List<Discuss> backList;

    @TableField(exist = false)
    private String type;


}
